package baidu.gifcanvas;

import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;

public class GifCanvas extends Canvas {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Image image;
	public GifCanvas() {
		image = Toolkit.getDefaultToolkit().getImage("3.gif");
		System.out.println(image);
	}
	public void paint(Graphics g) {
		g.drawImage(image, 10, 10, null);
	}
}
